<?php
/* @var $this JamaahController */
/* @var $model Jamaah */

//$this->breadcrumbs=array(
//	'Jamaahs'=>array('index'),
//	'Manage',
//);
//
//$this->menu=array(
//	array('label'=>'List Jamaah', 'url'=>array('index')),
//	array('label'=>'Create Jamaah', 'url'=>array('create')),
//);

Yii::app()->clientScript->registerScript('search',
        "
/*$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});*/
$('.search-form').toggle();
$('.search-form form').submit(function(){
	$.fn.yiiGridView.update('jamaah-grid', {
		data: $(this).serialize()
	});
	return false;
});
");
?>
<div class="fontcolor1668b1 fontfamcalibry font24" style="padding:3px 15px">
    <b>JAMAAH</b>
</div>
<div style="">
    <div style="width: 540px; padding:10px">
            <? //php echo CHtml::link('Pencarian','#',array('class'=>'search-button'));  ?>
        <div class="search-form" style="display:none;padding-top:10px">
            <?php
            $this->renderPartial('_search',
                    array(
                'model' => $model, 'list_parent' => $list_parent,
            ));
            ?>
        </div><!-- search-form -->

        <?php
        $this->widget('zii.widgets.grid.CGridView',
                array(
            'id' => 'jamaah-grid',
            'dataProvider' => $model->search(),
//	'filter'=>$model,
            'columns' => array(
                array(
                    'header' => 'Data Jamaah',
                    'type' => 'html',
                    'value' => 'u::tabeljamaah($data)', //'U::html(strtoupper($data["nama_kelompok"]),"'.bu().'/img/radio-button_off.gif","").U::html(ucwords($data->idKabupaten->nama_kabupaten),"'.bu().'/img/home.gif","")',
                    //'value' => 'l(e($data["nama"]),url("/backend/berita/update/".$data["id"]))'
                    'htmlOptions' => array('width' => '40px'),
                ),
            ),
        ));
        ?>
    </div>
</div>